<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE"/>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <title>测试页面</title>
  <script src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>

</head>
<body>
<textarea style="width: 100%;height: 500px;" id="data">
{"tasks":    [
      {"id": -1, "name": "甘特图", "progress": 20, "description": "甘特图描述",  "level": 0, "status": "STATUS_ACTIVE", "depends": "",  "start": 1396994400000, "duration": 17, "end": 1499586399999, "startIsMilestone": true, "endIsMilestone": false, "collapsed": false, "assigs": [{"resourceId":"1","id":"1"},{"resourceId":"2","id":"2"}], "hasChild": true},
      {"id": -2, "name": "添加甘特图", "progress": 40,   "description": "添加甘特图及其周边",  "level": 1, "status": "STATUS_ACTIVE", "depends": "",  "start": 1396994400000, "duration": 10, "end": 1398203999999, "startIsMilestone": false, "endIsMilestone": false, "collapsed": false,  "hasChild": true},
      {"id": -3, "name": "添加左边部分", "progress": 60, "description": "添加甘特图左边树形结构", "level": 2, "status": "STATUS_ACTIVE", "depends": "",  "start": 1396994400000, "duration": 2, "end": 1397167199999, "startIsMilestone": false, "endIsMilestone": true, "collapsed": false, "hasChild": false},
      {"id": -4, "name": "添加右边部分", "progress": 80,  "description": "添加甘特图右边图表结构",  "level": 2, "status": "STATUS_ACTIVE", "depends": "3",  "start": 1397167200000, "duration": 4, "end": 1397685599999, "startIsMilestone": false, "endIsMilestone": false, "collapsed": false, "hasChild": false},
      {"id": -5, "name": "测试甘特图", "progress": 100,  "description": "",  "level": 1, "status": "STATUS_ACTIVE", "depends": "4",  "start": 1398981600000, "duration": 5, "end": 1399586399999, "startIsMilestone": false, "endIsMilestone": false, "collapsed": false,  "hasChild": true},
      {"id": -6, "name": "代码测试", "progress": 0,  "description": "",  "level": 2, "status": "STATUS_ACTIVE", "depends": "3",  "start": 1398981600000, "duration": 2, "end": 1399327199999, "startIsMilestone": false, "endIsMilestone": false, "collapsed": true,  "hasChild": false},
      {"id": -7, "name": "网页测试", "progress": 0,  "description": "",  "level": 2, "status": "STATUS_ACTIVE", "depends": "6",  "start": 1399327200000, "duration": 3, "end": 1399586399999, "startIsMilestone": false, "endIsMilestone": false, "collapsed": false, "hasChild": false},
      {"id": -8, "name": "集成到平台测试", "progress": 0,  "description": "", "level": 2, "status": "STATUS_ACTIVE", "depends": "7",  "start": 1399327200000, "duration": 2, "end": 1399499999999, "startIsMilestone": false, "endIsMilestone": false, "collapsed": false, "hasChild": false}
    ],
    "resources": [
      {"id": "1", "name": "管理员"},
      {"id": "2", "name": "用户2"},
      {"id": "3", "name": "用户3"},
      {"id": "4", "name": "用户4"}
    ],
      "roles":       [
      {"id": "1", "name": "默认角色"}
    ],"canWrite":false,"canmove":false,"layout":2
}
</textarea>
<br/>
<button onclick="sub()">提交</button>
<script type="text/javascript">
function sub(){
	var data = $("#data").val();
	sessionStorage.setItem("gant_data", data);
	location.href="index.html";
}
</script>
</body>
</html>